package com.springboot.demo.entity;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.springboot.demo.common.customValidator.ListNotHasNull;
import com.springboot.demo.entity.data.MsgData;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @author wubc683
 * @desc
 * @date 2021-10-14 14:48
 */
@Data
public class SceneData {
    @ApiModelProperty(value = "组态id",required = true)
    @NotNull(message = "组态id不能为null")
    private Long sceneId;
    @Valid
    @ApiModelProperty(value = "组态连接列表",required = true)
    @ListNotHasNull(message="组态连接列表不能为null")
    private List<Connection> connList;
    @Valid
    @ApiModelProperty(value = "组态变量列表",required = true)
    @ListNotHasNull(message = "组态变量列表不能为null")
    private List<Variable> varList;
    @Valid
    @ApiModelProperty(value = "组态模拟量列表",required = true)
    @ListNotHasNull(message = "组态模拟量列表不能为null")
    private List<AnalogAlarm> analogAlarmList;
    @Valid
    @ApiModelProperty(value = "组态离散量列表",required = true)
    @ListNotHasNull(message = "组态离散量列表不能为null")
    private List<DiscreteAlarm> discreteAlarmList;
}
